﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDSAdministration
{
    public class CompareAttributeGroupDetail
    {
        public CompareAttributeGroup AttributeGroup { get; set; }
        public CompareAttribute Attribute { get; set; }
        
        public string Name
        {
            get { return AttributeGroup.Name + "." + Attribute.Name; }
        }
        public int SortOrder { get; set; }
        public string MUID { get; set; }
        public int AttributeID { get; set; }

        public static string getAttributeGroupDetailKey(CompareAttributeGroup attributeGroup, CompareAttribute attribute)
        {
            return CompareAttributeGroup.getAttributeGroupKey(attributeGroup.Name) + "_" + CompareAttribute.getAttributeKey(attribute.Name, attribute.MemberType);
        }
    }
}
